const cloud = require('wx-server-sdk')

exports.main = async (event, context) => {
  try {
    const result = await cloud.openapi.cloudbase.sendSms({
        "env": 'cloud1-0goai1xg04c52bfc',
        "content": '发布了新的能力',
        "path": '/index.html',
        "phoneNumberList": [
          "+8613923734886"
        ],
        "smsType": 'Marketing',
        "useShortName": false
      })
    return result
  } catch (err) {
    return err
  }
}